'''
Created on 2009-10-30

@author: yuchen
'''
import gamemodel.board
import gamemodel.player

class CheckerPiece(object):
    '''
    classdocs
    '''


    def __init__(self, player, x, y):
        '''
        Constructor
        '''
        self.player = player
        self.position = [x, y]
        self.king = False
    
    def turn_king(self): 
        self.player.turn_king(self)
        self.king = True
    
    def eaten(self):
        self.player.delete_piece(self)
    
    def getPiecePosition(self, piece):
        return self.piece.poistion